﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace InnovTech.Util.Text
{
    /// <summary>
    /// The utility class for the UTF-8 encoding
    /// </summary>
    public static class Utf8Util
    {
        /// <summary>
        /// Creates the most characters for the UTF-8 encoding
        /// </summary>
        /// <returns></returns>
        public static String CreateCharSets()
        {
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < 65536; i++)
            {
                string s = "" + (char)i;
                byte[] bytes = Encoding.UTF8.GetBytes(s);
                sb.Append(Encoding.UTF8.GetString(bytes));
            }
            return sb.ToString();
        }
    }
}
